package com.janella.dao.impl;
import java.util.List;

import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.janella.dao.UserDAO;
import com.janella.model.User;

public class UserDAOImpl extends HibernateDaoSupport implements UserDAO {

	@SuppressWarnings("unchecked")
	@Override
	public List<User> getUsers() {
		return getHibernateTemplate().find("select u from User u");
	}
	
	public void addUser(User user){
		getHibernateTemplate().save(user);
	}

}
